import type { VabRouteRecordRaw } from '../types'
import Layout from '/@vab/layouts/index.vue'
const order: VabRouteRecordRaw[] = [
  {
    path: '/order',
    name: 'Order',
    component: Layout,
    meta: {
      title: '订单管理',
      icon: 'file-list-3-line',
    },
    children: [
      {
        path: 'customerOrder',
        name: 'CustomerOrder',
        component: () => import('/@/views/order_management/customer_order/index.vue'),
        meta: {
          title: '客户订单',
          noKeepAlive: false,
          // icon: 'user-search-line',
          // dot: true,
        },
      },
      {
        path: 'treatment',
        name: 'Treatment',
        component: () => import('/@/views/order_management/customer_order/component/treatment.vue'),
        meta: {
          hidden: true,
          title: '客户订单',
          // icon: 'user-add-line',
          noKeepAlive: true,
          tabHidden: true,
        },
      },
      {
        path: 'addOrder',
        name: 'AddOrder',
        component: () => import('/@/views/order_management/component/AddOrder.vue'),
        meta: {
          hidden: true,
          title: '订单',
          // icon: 'user-add-line',
          noKeepAlive: true,
          tabHidden: true,
        },
      },
      {
        path: 'quickOrder',
        name: 'QuickOrder',
        component: () => import('/@/views/order_management/component/QuickOrder.vue'),
        meta: {
          hidden: true,
          title: '样品下单',
          // icon: 'user-add-line',
          noKeepAlive: true,
          tabHidden: true,
        },
      },
      //OrderQuery
      /*{
        path: 'orderQuery',
        name: 'OrderQuery',
        component: () => import('/@/views/order_management/OrderQuery/index.vue'),
        meta: {
          title: '订单查询',
          noKeepAlive: false,
          // icon: 'user-search-line',
          // dot: true,
        },
      },*/
      {
        path: 'retrieval',
        name: 'Retrieval',
        component: () => import('/@/views/order_management/customer_order/component/retrieval.vue'),
        meta: {
          title: '销售出库单',
          noKeepAlive: true,
          tabHidden: true,
          hidden: true,
          // icon: 'user-search-line',
          // dot: true,
        },
      },
      {
        path: 'expressCompany',
        name: 'ExpressCompany',
        component: () => import('/@/views/order_management/customer_order/component/expressCompany.vue'),
        meta: {
          title: '快递运输',
          noKeepAlive: true,
          tabHidden: true,
          hidden: true,
          // icon: 'user-search-line',
          // dot: true,
        },
      },
      {
        path: 'receipt',
        name: 'Receipt',
        component: () => import('/@/views/order_management/customer_order/component/receipt.vue'),
        meta: {
          title: '确认收货',
          noKeepAlive: true,
          tabHidden: true,
          hidden: true,
          // icon: 'user-search-line',
          // dot: true,
        },
      },
      {
        path: 'standardOrder',
        name: 'StandardOrder',
        component: () => import('/@/views/order_management/standardOrder/index.vue'),
        meta: {
          title: '标准销售订单',
          noKeepAlive: false,
          // icon: 'user-search-line',
          // dot: true,
        },
      },
      {
        path: 'consignOrder',
        name: 'ConsignOrder',
        component: () => import('/@/views/order_management/consignOrder/index.vue'),
        meta: {
          title: '寄售订单',
          noKeepAlive: false,
          // icon: 'user-search-line' ,
          // dot: true,
        },
      },
      {
        path: 'consignment',
        name: 'ConsignmentSettlement',
        component: () => import('/@/views/order_management/consignmentSettlement/index.vue'),
        meta: {
          title: '寄售结算单',
          noKeepAlive: false,
          // icon: 'user-search-line' addStatement,
          // dot: true,
        },
      },
      {
        path: 'addStatement',
        name: 'AddStatement',
        component: () => import('/@/views/order_management/consignmentSettlement/component/addStatement.vue'),
        meta: {
          hidden: true,
          title: '结算单',
          // icon: 'user-add-line',
          noKeepAlive: true,
          tabHidden: true,
        },
      },
      //ConsignmentDetails  寄售结算单详情
      {
        path: 'consignmentDetails',
        name: 'ConsignmentDetails',
        component: () => import('/@/views/order_management/consignmentSettlement/component/consignmentDetails.vue'),
        meta: {
          hidden: true,
          title: '寄售结算单详情',
          // icon: 'user-add-line',
          noKeepAlive: true,
          tabHidden: true,
        },
      },
      {
        path: 'sampleOrder',
        name: 'SampleOrder',
        component: () => import('/@/views/order_management/sampleOrder/index.vue'),
        meta: {
          title: '样品订单',
          noKeepAlive: false,
          // icon: 'user-search-line',
          // dot: true,sampleOrder
        },
      },
      {
        path: 'orderQuery',
        name: 'OrderQuery',
        component: () => import('/@/views/order_management/OrderQuery/index.vue'),
        meta: {
          title: '订单查询',
          noKeepAlive: false,
          // icon: 'user-search-line',
          // dot: true,
        },
      },
    ],
  },
]

export default order
